package pe.gob.mef.snip.preinversion.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import pe.gob.mef.snip.preinversion.dao.mybatis.GastoOymMapperDAO;
import pe.gob.mef.snip.preinversion.domain.GastoOym;
import pe.gob.mef.snip.preinversion.service.GastoOymService;

@Service
public class GastoOymServiceImpl implements GastoOymService{
	
	@Autowired
	private GastoOymMapperDAO gastoOymMapperDAO;
	
	public void insertar(GastoOym gastoOym) {
		gastoOymMapperDAO.insertar(gastoOym);

	}

	public void actualizar(GastoOym gastoOym) {
		gastoOymMapperDAO.actualizar(gastoOym);
	}

	public void eliminar(GastoOym gastoOym) {
		gastoOymMapperDAO.eliminar(gastoOym);
		
	}
	
	public GastoOym obtener(GastoOym gastoOym) {
		 return gastoOymMapperDAO.obtener(gastoOym);
		
	}

	public List<GastoOym> listar(GastoOym gastoOym) {
		 return gastoOymMapperDAO.listar(gastoOym);
	}
	
}
